Skip to content

Instantly share code, notes, and snippets.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@krankos
krankos / claudex-agent-setup.md
Last active July 12, 2026 18:03
claudex: use Claude Code's interface with GPT/Codex models through CLIProxyAPI

claudex: use Claude Code's interface with a Codex model through CLIProxyAPI

Inspired by Theo's original post on X.

The basic idea: if you prefer Claude Code's agent harness and terminal UX to the Codex CLI, claudex lets you keep Claude Code's interface, tools, permissions, plugins, and workflow while using GPT/Codex models underneath. A local CLIProxyAPI server translates and routes Claude Code's requests to a model available through Codex OAuth.

The important isolation rule is:

  • claude continues to work normally with its existing account and configuration.
  • codex continues to work normally with its existing configuration.
@jakevdp
jakevdp / discrete_cmap.py
Last active July 12, 2026 18:00
Small utility to create a discrete matplotlib colormap
# By Jake VanderPlas
# License: BSD-style
import matplotlib.pyplot as plt
import numpy as np
def discrete_cmap(N, base_cmap=None):
"""Create an N-bin discrete colormap from the specified input map"""
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
T3ZWQ-P2738-3FJWS-YE7HT-6NA3K
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
65Z2L-P36BY-YWJYC-TMJZL-YDZ2S
SFZHH-2Y246-Z483L-EU92B-LNYUA
GSZVS-5W4WA-T9F2E-L3XUX-68473
FTZ8A-R3CP8-AVHYW-KKRMQ-SYDLS
Q3ZWN-QWLZG-32G22-SCJXZ-9B5S4
DAZPH-G39D3-R4QY7-9PVAY-VQ6BU
KLZ5G-X37YY-65ZYN-EUSV7-WPPBS
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active July 12, 2026 17:54
Conventional Commits Cheatsheet
@conradcaffier03
conradcaffier03 / give-claude-eyes.md
Created July 9, 2026 19:59
Give Claude Eyes — watch any video frame-by-frame, 100% local (buildwith.conrad)

👁️ Give Claude Eyes — watch any video frame-by-frame

Freebie for the EYES keyword (reel-47, "Give Claude eyes"). Deliver as a public GitHub Gist — numbered steps the user can run today, not a raw link. Value-first: by the end you have a Claude Code skill that sees a video (every cut, every on-screen detail), not just reads its transcript.


Why this exists

Claude has no native video model. So every "analyze this video" tool just pulls the transcript — and

@Pythonation
Pythonation / prompt.md
Last active July 12, 2026 17:49
3 PROMPTS OF CODING AGENTS

1. برومبت التخطيط المطوّر (The Planning Protocol)

[الدور والمسؤولية] أنت الآن تعمل بصفة Staff Software Engineer ومدير تقني Tech Lead. مهمتك التخطيط المعماري الصارم للمشروع التالي: [أدخل وصف المشروع هنا]

[قواعد ما قبل التتخطيط] قبل البدء بالبروتوكولات، يجب أن تطبق مبدأ "Think Before Coding":

@karpathy
karpathy / min-char-rnn.py
Last active July 12, 2026 17:46
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
using UnityEngine.UI;
[RequireComponent(typeof(RectTransform), typeof(LayoutElement))]
[ExecuteInEditMode]
public class LayoutElementFitParent : MonoBehaviour
{
[SerializeField] private float aspectRatio = 1;
[SerializeField] private bool updateMin = false;
[SerializeField] private bool updatePreferred = false;